home *** CD-ROM | disk | FTP | other *** search
- global gMovieSprite, gMovieDuration, gReturnFrame
-
- on startMovie
- set the exitLock to 1
- set gMovieSprite to 20
- set the volume of sound 1 to 255
- set the volume of sound 2 to 255
- end
-
- on legalButton whichSprite
- repeat while the stillDown
- set gReturnFrame to marker(0)
- return 1
- end repeat
- end
-
- on stopAllQT
- exit
- repeat with x = 1 to 48
- if the type of sprite x > 0 then
- if the castType of cast the castNum of sprite x = #digitalVideo then
- set the movieRate of sprite x to 0
- end if
- end if
- end repeat
- end
-
- on find whichCast, startFrame, endFrame
- repeat with x = startFrame to endFrame
- go(x)
- repeat with y = 1 to 48
- if the type of sprite y > 0 then
- if the castNum of sprite y = whichCast then
- put "Cast member " & whichCast & " was found in frame " & x & ", in channel " & y & "."
- end if
- end if
- end repeat
- end repeat
- end
-
- on delayFor howLong
- set howLong to the timer + howLong
- repeat while the timer < howLong
- updateStage()
- end repeat
- end
-
- on returnFrame whichFrame
- stopAllQT()
- set whichSprite to gMovieSprite + 1
- puppetSound("ReturnB")
- repeat with x = 1 to 2
- set the castNum of sprite whichSprite to the number of cast "returnArrow0"
- updateStage()
- delayFor(15)
- set the castNum of sprite whichSprite to the number of cast "returnArrow1"
- updateStage()
- delayFor(15)
- end repeat
- blackFrame()
- puppetSound(0)
- go(whichFrame)
- set the volume of sound 2 to 255
- end
-
- on pressButton whichSprite, whichSound, whichHighlightCast, whichFrame
- preLoadCast(whichSound)
- set the castNum of sprite whichSprite to the number of cast "MOREBON.GIF"
- set the castNum of sprite 7 to the number of cast "text0"
- updateStage()
- puppetSound(whichSound)
- updateStage()
- startTimer()
- repeat while the soundBusy of 1 or (the timer < 5)
- updateStage()
- end repeat
- set the castNum of sprite whichSprite to the number of cast "MOREBOFF.GIF"
- set the castNum of sprite 7 to the number of cast whichHighlightCast
- updateStage()
- blackFrame()
- puppetSound(0)
- go(whichFrame)
- set the volume of sound 2 to 127
- end
-
- on blackFrame
- repeat with x = 1 to 48
- set the locV of sprite x to -500
- end repeat
- puppetTransition(50, 0, 12)
- updateStage()
- puppetTransition(0)
- end
-
- on beatFast
- exit
- set the volume of sound 1 to the volume of sound 2
- sound stop 2
- repeat with x = 1 to 15
- set the volume of sound 1 to the volume of sound 1 + 8
- puppetSound(0)
- puppetSound("HEART.WAV")
- delayFor((18 - x) * 2)
- end repeat
- sound stop 1
- puppetSound(0)
- delayFor(20)
- end
-